package shop;


public class GoodsShop {
    private double money = 0;//卖出商品的收入

    public double sellGoods(Goods car) {//卖商品行为的方法
        double price = car.getPrice();
        return money = money + price;
    }

    public double getMoney() {
        return money;
    }
}